<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_JS运算符</title>
</head>
<body>
    <script>
        console.log(6/3);
        console.log(3/2);

        console.log(3>10);
        console.log(3>'10');
        console.log('3'>10)
        console.log('奇'>'宇');
        console.log('奇'.charCodeAt());//查看字符的编码值
        console.log('宇'.charCodeAt());//查看字符的编码值
        console.log('宇'.charCodeAt());
        console.log('3'>'10');
        console.log('3'.charCodeAt());
        console.log('10'.charCodeAt());
        console.log('13'.charCodeAt(1));
        console.log('13'.charCodeAt(2));


        let a = 1;
        let b = true;
        console.log(a== b);
        console.log(a===b);

        //三元运算符
        //1 ? 2 : 3
        let c = 0;
        console.log(c ==0? 'YES' : 'NO');
        console.log(c =0? 'YES' : 'NO');

    </script>

</body>
</html>